//
//  UIView+Extention.m
//  MusicPlayer
//
//  Created by lanou3g on 16/5/14.
//  Copyright © 2016年 韩宏. All rights reserved.
//

#import "UIView+Extention.h"

@implementation UIView (Extention)

- (CGFloat)x
{
    return self.frame.origin.x;
}

- (void)setX:(CGFloat)x
{
    CGRect frame = self.frame;
    frame.origin.x = x;
    self.frame = frame;
}

- (CGFloat)width
{
    return self.frame.size.width;
}

- (void)setWidth:(CGFloat)width
{
    CGRect frame = self.frame;
    frame.size.width = width;
    self.frame = frame;
}

@end
